package com.hys.rabbitmq.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.hys.rabbitmq.config.RabbitConfig;

@RabbitListener(
		queues={RabbitConfig.DirectExchangeKey2}
)
@Component
public class DirectExchangeReceiver2 {
	
	@RabbitHandler
    public void process(String hello) {
        System.out.println(RabbitConfig.DirectExchangeKey2 + "隊列 : " + hello);
    }
}
